package com.ethink.mdm.api.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *
 * @Author: lzy
 * @Date: Created in 2022/12/8 14:16
 * ModifiedBy:
 * Version:
 */
@Data
public class LegalCurrencyExchangeRateGetRequest {
    @Schema(description = "源币种编码")
    @NotBlank(message = "源币种编码不能为空")
    private String orgCurrencyCode;

    @Schema(description = "目标币种编码")
    @NotBlank(message = "目标币种编码不能为空")
    private String aimCurrencyCode;

    @Schema(description ="发布日期")
    @NotNull(message = "发布日期不能为空")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date pubDate;
}
